package com.dd.stack.es.pojo.params;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @Author liuxianmeng
 * @CreateTime 2025/5/11 16:24
 * @Description 产品查询参数
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("文件查询参数")
public class ProductQueryParams {
    @ApiModelProperty("商品名称（模糊查询）")
    private String productName;
    @ApiModelProperty("最低价格")
    private Double minPrice;
    @ApiModelProperty("最高价格")
    private Double maxPrice;
    @ApiModelProperty("最小库存数量")
    private Integer minStock;
    @ApiModelProperty("最大库存数量")
    private Integer maxStock;
    @ApiModelProperty("最早创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime earliestCreateTime;
    @ApiModelProperty("最新（迟）创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime latestCreateTime;
}